package com.ruoyi.space.domain;

import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 查看问题对象 space_ques
 * 
 * @author ruoyi
 * @date 2025-04-02
 */
public class SpaceQuesDto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问题ID */
    private Long id;

    /** 问题标题 */
    @Excel(name = "问题标题")
    private String title;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String description;

    /** 问题发布人 */
    @Excel(name = "问题发布人")
    private String publisher;

    /** 发布人手机号 */
    @Excel(name = "发布人手机号")
    private String phone;

    /** 问题发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd-HH:mm:ss")
    @Excel(name = "问题发布时间", width = 30, dateFormat = "yyyy-MM-dd-HH:mm:ss")
    private LocalDateTime publishTime;

    /** 回答数量 */
    @Excel(name = "回答数量")
    private Long replyCount;

    /** 是否隐藏 */
    @Excel(name = "是否隐藏")
    private Integer isHidden;

    /** 置顶状态 */
    @Excel(name = "置顶状态")
    private Integer isTop;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setPublishTime(LocalDateTime publishTime)
    {
        this.publishTime = publishTime;
    }

    public LocalDateTime getPublishTime()
    {
        return publishTime;
    }

    public void setReplyCount(Long replyCount) 
    {
        this.replyCount = replyCount;
    }

    public Long getReplyCount() 
    {
        return replyCount;
    }

    public void setIsHidden(Integer isHidden) 
    {
        this.isHidden = isHidden;
    }

    public Integer getIsHidden() 
    {
        return isHidden;
    }

    public void setIsTop(Integer isTop) 
    {
        this.isTop = isTop;
    }

    public Integer getIsTop() 
    {
        return isTop;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("publisher", getPublisher())
            .append("phone", getPhone())
            .append("publishTime", getPublishTime())
            .append("replyCount", getReplyCount())
            .append("isHidden", getIsHidden())
            .append("isTop", getIsTop())
            .append("sort", getSort())
            .toString();
    }
}
